﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace UILibrary
{
    public class ActionPaneBuilder
    {
        public static void layoutControls(MyGDocsForm myGDocsForm)
        {
            ImageList imageList = new ImageList();
            imageList.ColorDepth = ColorDepth.Depth32Bit;
            imageList.TransparentColor = Color.Transparent;
            imageList.ImageSize = new Size(20, 20);

            imageList.Images.Add(Properties.Resources.Loop);
            imageList.Images.Add(Properties.Resources.MessageQueuing);
            imageList.Images.Add(Properties.Resources.users);
            imageList.Images.Add(Properties.Resources.Folder);
            imageList.Images.Add(Properties.Resources.update_small);
            imageList.Images.Add(Properties.Resources.support_small);
            imageList.Images.Add(Properties.Resources.linkedin_small);
            imageList.Images.Add(Properties.Resources.Settings);
            imageList.Images.Add(Properties.Resources.twitter); 


            myGDocsForm.MyGDocsTabControl.ImageList = imageList;
            myGDocsForm.MyGDocsTabControl.TabPages["SignIn"].ImageIndex = 0;
            myGDocsForm.MyGDocsTabControl.TabPages["ShareTab"].ImageIndex = 2;
            myGDocsForm.MyGDocsTabControl.TabPages["Explorer"].ImageIndex = 3;
            myGDocsForm.MyGDocsTabControl.TabPages["UpdateTab"].ImageIndex = 4;
            myGDocsForm.MyGDocsTabControl.TabPages["SupportTab"].ImageIndex = 5;
            myGDocsForm.MyGDocsTabControl.TabPages["tabWeb"].ImageIndex = 6;
            myGDocsForm.MyGDocsTabControl.TabPages["tabProxy"].ImageIndex = 7;
            myGDocsForm.MyGDocsTabControl.TabPages["tabTwitter"].ImageIndex = 8;
            

            myGDocsForm.listSearchResults.SmallImageList = imageList;
            myGDocsForm.listSearchResults.LargeImageList = imageList;

            myGDocsForm.lstViewTwitts.SmallImageList = imageList;
            myGDocsForm.lstViewTwitts.LargeImageList = imageList; 

            myGDocsForm.Dock = DockStyle.Fill;
        }
    }
}
